package com.my.study.dev.demo;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Carlos
 * @version 1.0.0
 * @date 2023/4/11 19:38
 */
public class PermissionCheckContext {
    
    private static final Map<String, PermissionCheckStrategy> STRATEGY = new HashMap<>(16);
    
    
    public static void putStrategy(String type, PermissionCheckStrategy strategy) {
        STRATEGY.put(type, strategy);
    }
    
    
    public static PermissionCheckStrategy getStrategy(String type) {
        return STRATEGY.get(type);
    }
    
}
